package com.weipai.springboot.module.dao;

import com.weipai.springboot.model.GiftCertificate;

import java.util.List;
import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/09/13 20:11
 */
public interface GiftCertificateDao {
    int insert(GiftCertificate giftCertificate);

    GiftCertificate getGiftCertificateById(String id);

    int updateDel(String id);

    int updateStatus(String id, Integer status);

    int updateByPrimaryKey(GiftCertificate giftCertificate);

    List<Map<String, Object>> selectAllByPage(Integer start, Integer size);

    Integer selectAllByPageAmount();

    int batchDeleteById(String[] id);

    List<GiftCertificate> getAll();
    
}
